package com.epcs.model.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.google.gson.annotations.Expose;

public class FollowingList  implements Serializable{

	@Expose(deserialize=true, serialize=true)
	private List<EventFollowing> listOfFollwing;

	public List<EventFollowing> getListOfFollwing() {
		return listOfFollwing;
	}

	public void setListOfFollwing(List<EventFollowing> listOfFollwing) {
		this.listOfFollwing = listOfFollwing;
	}

	public FollowingList(List<Following> listOfFollwing) {
		super();
		this.listOfFollwing = new ArrayList<FollowingList.EventFollowing>();
		for (int i = 0; i < listOfFollwing.size(); i++){
			Following sourceItem = listOfFollwing.get(i);
			EventFollowing output = new EventFollowing();
			
			output.setFollowingId(sourceItem.getFollowingId());
			output.setIdOfFollow(sourceItem.getIdOfFollow());
			output.setUsername(sourceItem.getAccount().getUsername());
			output.setTypeOfFollow(sourceItem.getTypeOfFollow());
			
			this.listOfFollwing.add(output);
		}
	}
	
	public class  EventFollowing{
		
		@Expose(deserialize=true, serialize=true)
		private int followingId;
		@Expose(deserialize=true, serialize=true)
	    private String username;
		@Expose(deserialize=true, serialize=true)
	    private int idOfFollow;
		@Expose(deserialize=true, serialize=true)
	    private String typeOfFollow;
		public int getFollowingId() {
			return followingId;
		}
		public void setFollowingId(int followingId) {
			this.followingId = followingId;
		}
		public String getUsername() {
			return username;
		}
		public void setUsername(String username) {
			this.username = username;
		}
		public int getIdOfFollow() {
			return idOfFollow;
		}
		public void setIdOfFollow(int idOfFollow) {
			this.idOfFollow = idOfFollow;
		}
		public String getTypeOfFollow() {
			return typeOfFollow;
		}
		public void setTypeOfFollow(String typeOfFollow) {
			this.typeOfFollow = typeOfFollow;
		}
		
		
		
	}
	
}
